package com.punai.system.service;

import com.punai.common.core.domain.entity.EcoCompany;

import java.util.List;
import java.util.Map;

public interface IEcoCompanyService {
    Integer getMaxSort();

    List<EcoCompany> selectCompanyList(EcoCompany company);

    void checkCompanyDataScope(String id);

    EcoCompany selectCompanyById(String id);

    List<String> selectDeptById(String id);

    String checkCompanyNameUnique(EcoCompany company);

    String checkCompanyPrxUnique(EcoCompany company);

    int insertCompany(EcoCompany company);

    int selectNormalChildrenCompanyById(Long id);

    int updateCompany(EcoCompany company);

    boolean hasChildByCompanyId(Long deptId);

    boolean checkCompanyExistUser(Long id);

    int deleteCompanyById(String id);

    EcoCompany treeCompanyList();

    List<Map<String, String>> getListType();

    List<Map<String,String>> getZyType();

}
